[feat] SwiftUI로 UI짜기 기본편 #11
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔥Pull requests
⛳️ 작업한 브랜치:
feat/#10-week06📟 관련 이슈: #10
👷 작업한 내용
💻 주요 코드
SwiftUI로 구현된 뷰를 hostingController를 통해 연결해주었습니다!
요 경우 UINavigationController가 UIHostingController를 관리하기 때문에 addChild를 하지 않았지만, 뷰 컨트롤러 간에 부모-자식 관계를 명시적으로 설정해야 하는 상황(예를 들면 뷰 컨트롤러를 서브뷰로 추가할 때)이라면 addChild를 명시해줘야 할 것 같습니다!
📸 스크린샷
🚨 참고 사항